﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using System.Windows;

namespace AttachedBehavior
{
   
    public class NonChangingDummyViewModel // : TODO: Implement INotifyPropertyChanged ; 
    {

        public List<string> Users
        { 
            get 
            { 
                List<string> users = new List<string>(); 
                users.Add ( "John" ); 
                users.Add ( "Susan" ); 
                users.Add ( "Sam"); 
                users.Add ( "Mike") ; 
                return users ; 
            } 
        }

         
        ICommand _command; 
        public ICommand CallBackCommand
        {
            get
            {
                if (_command == null)
                {
                    _command = new RelayCommand(CallBack); 
                }
                return _command; 
            } 
        }

        public void CallBack(object unused)
        {
            // Showing UI from Viewmodel should not happen
            // this is here just for illustration purposes.. 
            MessageBox.Show("properly routed"); 
        } 
    }
}
